package book.nettyinaction.ch05;

import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufProcessor;
import io.netty.util.ByteProcessor;

/**
 *
 * 代码清单 5-9 使用 ByteBufProcessor 来查找 \r
 *
 * @see io.netty.buffer.ByteBufProcessor
 * @see io.netty.util.ByteProcessor
 *
 */
public class Demo009ByteBufProcessor {
    public static void main(String[] args) {
        ByteBuf buffer = null;
        int index = buffer.forEachByte(ByteBufProcessor.FIND_CR);
        buffer.forEachByte(ByteProcessor.FIND_CR);
    }
}
